Skip to main content

Choice Question

AutomatR.GoogleForms.Activities.ChoiceQuestion

The "Choice Question" activity in AutomatR is part of the Google Forms activities package, facilitating the creation of a question with multiple-choice options within a Google Form. This activity enhances the form creation process by providing various customization options for the choice question.

Properties

NameDescription
Input
FormIDEnter the Form ID to which the choice question should be added. String variables containing the Form ID. This field is required.
TitleProvide the title for the choice question. String variables containing the title of the choice question. This field is required.
DescriptionProvide a description for the choice question. String variables containing the description of the choice question.
RequiredSpecify whether the question is required or not. Boolean variables indicating whether the question is required.
LocationSpecify the location or position where the choice question should be added in the form. Integer variables containing the location index.
Choice Question TypeSelect the type of choice question. Options include "Dropdown," "Checkbox," and "Radio."
OptionsProvide options for the choice question. Enter options separated by commas (Example: 'Option1,Option2,Option3'). String variables containing the options. This field is required.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Source URIThe source URI used to insert an image related to the choice question. It can be empty when fetched. String variables containing the source URI.
Optional
Image AlignmentSelect the alignment type for the image associated with the choice question. Choose from options like "Left," "Right," "Center," etc.
WidthEnter the width of the image associated with the choice question. Integer variables containing the width value.
DelaySpecifies the amount of time (in seconds) to wait before starting the activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultReturns the response as Form Details. Variables of relevant types (e.g., BatchUpdateFormResponse) to store the response details.

How to use:

  1. Drag and drop the "Choice Question" activity onto the workflow.
  2. Configure the properties by specifying the Form ID, choice question title, type, options, and other optional settings.
  3. Optionally, configure the delay before starting the activity.
  4. Execute the workflow to add a choice question to the specified Google Form.

Example:

Consider an example where the "Choice Question" activity is used to add a dropdown question titled "Select Country" with options "India," "USA," and "Canada" to a Google Form with a Form ID of "xyz789":

Choice Question:
FormID: "xyz789"
Title: "Select Country"
Choice Question Type: Dropdown
Options: "India,USA,Canada"
Location: 3
Image Alignment: Left
Width: 100
Source URI: "https://example.com/country-image.jpg"
Result: formDetails

In this example, the activity adds a dropdown choice question to the Google Form with the specified Form ID, title, type, options, location, image alignment, width, and source URI. The response details are stored in the variable "formDetails" for further handling in the workflow.